<?php /**  * Template Name: Front Page */ ?>

<?php 
global $options;
foreach ($options as $value) {
    if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); }
}
get_header(); ?>


  <div id="content" class="home-page">
    <div class="wrap">
    
      <?php wp_reset_query(); 
      if (have_posts()) : the_post(); ?>
      
	  <div class="col-1">
	  	<div id="home-intro">
			<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Sidebar: Homepage (Middle)') ) : ?><?php endif; ?>
		</div>
      </div>
	  
      <div class="col-2 last">
		<?php if (function_exists('rps_show')) echo rps_show(); ?>
      </div>
	
      <div class="clear"></div>
		
		<div class="col-2" id="courses">
			<div>
				<?php
					if( function_exists( 'class_calendar' ) ) {
						class_calendar(); 
					}
				?>
			</div>
		</div>
		
		<div class="col-1 last" id="more_info">
			<div id="latest-news">
				<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Sidebar: Homepage (Left)') ) : ?><?php endif; ?>
			</div>
			<div>
				<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Sidebar: Homepage (Right)') ) : ?><?php endif; ?>
			</div>
		</div>

<?php endif; ?>

      <div class="clear">&nbsp;</div>

    </div><!-- end .wrap -->
  </div><!-- end #content -->

<?php get_footer(); ?>
